package cn.ylz.ylmall.account.dao.persist.mapper;

import cn.ylz.ylmall.account.pojo.entity.User;
import cn.ylz.ylmall.account.pojo.vo.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper extends BaseMapper<User> {
    UserLoginInfoVO selectByUsername(String s);

    List<UserListItemVO> list();

    UserStandardVO getStandardById(Long id);

    List<UserPermissionVO> PermissionsById(Long id);

    List<UserRoleVO> roleById(Long userId);

    List<UserListItemVO> listAdmin();
}
